from server.metadata.osdb.OSDB import OSDB

tenantDB = OSDB('tenant')

def addTenant(appid, secretKey, bucket):
    tenantDB.add(appid, secretKey + '\n' + bucket)

def getTenant(appid):
    return tenantDB.get(appid)

def init():
    addTenant('01234567890123456789012345678901', '98765432109876543210987654321098', 'webspider')
